//
//  ModelInfo.h
//  SpaceStorm
//
//  Created by 祥 雍 on 13-4-22.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import "TBXML.h"
#import "cocos2d.h"
#import "Constants.h"

@interface ShipModelInfo : NSObject
{
    int _modelId;
    float _width;
    float _height;
    CGPoint _anchorPoint;
    CGRect _attackArtillery1;
    CGRect _attackArtillery2;
    CGRect _attackArtillery3;
    CGRect _attackArtillery4;
    CGRect _attackArtillery5;
    CGRect _attackArtillery6;
    CGRect _attackArtillery7;
    CGRect _attackArtillery8;
    CGRect _defenseArtillery1;
    CGRect _defenseArtillery2;
    CGRect _defenseArtillery3;
    CGRect _defenseArtillery4;
    CGRect _defenseArtillery5;
    CGRect _defenseArtillery6;
    CGRect _defenseArtillery7;
    CGRect _defenseArtillery8;
}

@property (readwrite) int modelId;                          //模型的id
@property (readwrite) float width;                            //模型的宽
@property (readwrite) float height;                           //模型的高
@property (readwrite) CGPoint anchorPoint;                      //重心点，锚点

@property (readwrite) CGRect attackArtillery1;                 //攻击炮位1
@property (readwrite) CGRect attackArtillery2;                 //攻击炮位2
@property (readwrite) CGRect attackArtillery3;                 //攻击炮位3
@property (readwrite) CGRect attackArtillery4;                 //攻击炮位4
@property (readwrite) CGRect attackArtillery5;                 //攻击炮位5
@property (readwrite) CGRect attackArtillery6;                 //攻击炮位6
@property (readwrite) CGRect attackArtillery7;                 //攻击炮位7
@property (readwrite) CGRect attackArtillery8;                 //攻击炮位8

@property (readwrite) CGRect defenseArtillery1;                //防御炮位1
@property (readwrite) CGRect defenseArtillery2;                //防御炮位2
@property (readwrite) CGRect defenseArtillery3;                //防御炮位3
@property (readwrite) CGRect defenseArtillery4;                //防御炮位4
@property (readwrite) CGRect defenseArtillery5;                //防御炮位5
@property (readwrite) CGRect defenseArtillery6;                //防御炮位6
@property (readwrite) CGRect defenseArtillery7;                //防御炮位7
@property (readwrite) CGRect defenseArtillery8;                //防御炮位8

+(id) modelWithTbxml:(TBXMLElement *)tbxml;
-(id) initWithTbxml:(TBXMLElement *)tbxml;
-(CGRect) getPosAndAngle:(WeaponType)weaponType index:(int)index;

@end
